from sqlalchemy import Column, Integer, String, DateTime

from module_admin.entity.do.base import db


class Post(db.Model):
    __tablename__ = 'sys_posts'

    id = Column(Integer, primary_key=True, autoincrement=True, comment='论坛ID')
    title = Column(String(100), nullable=False, comment="主题")
    content = Column(String(500), nullable=False, comment="内容")
    created_by = Column(String(64, collation='utf8_general_ci'), default='', comment='创建者')
    user_id = Column(Integer, comment='用户ID')
